Part Number Hot Search : 
15011 01089 DS2117M TCD1206 XXXPB RA20X1 35507 2SC1906Y
Product Description
Full Text Search
 

To Download MC33975 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Freescale Semiconductor Technical Data
Document order number: MC33975 Rev 4.0, 08/2005
Multiple Switch Detection Interface with Suppressed Wake-Up and 32mA Wetting Current
Freescale offers multiple Switch Detection Interface Devices. The 33975 Multiple Switch Detection Interface with Suppressed Wake-Up is designed to detect the closing and opening of up to 22 switch contacts. The switch status, either open or closed, is transferred to the microprocessor unit (MCU) through a serial peripheral interface (SPI). The device also features a 22-to-1 analog multiplexer for reading inputs as analog. The 33975 device has two modes of operation, Normal and Sleep. Normal mode allows programming of the device and supplies switch contacts with pull-up or pull-down current as it monitors switch change of state. The Sleep mode provides low quiescent current, which makes the 33975 ideal for automotive and industrial products requiring low sleep state currents. Improvements are a programmable interrupt timer for Sleep mode that can be disabled, switch detection currents of 32 mA and 4.0 mA for switch-to-ground inputs, and an interrupt bit that can be reset. Features
33975 33975A
MULTIPLE SWITCH DETECTION INTERFACE WITH SUPPRESSED WAKE-UP
EK Suffix (Pb-Free) 98ARL10543D 32-TERMINAL SOICW EP
ORDERING INFORMATION
Temperature Range (TA) -40C to 125C Package
* Designed to Operate 5.5 V VPWR 28 V Device * Switch Input Voltage Range -14 V to VPWR MC33975EK/R2 * Interfaces Directly to Microprocessor Using 3.3 V/5.0 V SPI Protocol PC33975AEK/R2 * Selectable Wake-Up on Change of State * Selectable Wetting Current (32 mA or 4.0 mA for switch-to-ground inputs) * 8 Programmable Inputs (Switches to Battery or Ground) * 14 Switch-to-Ground Inputs * VPWR Standby Current 100 A Typical, VDD Standby Current 20 A Typical * Pb-free 32-terminal suffix EK
VDD VBAT VBAT SP0 SP1 VBAT SP7 Power Supply LVI Enable VDD VDD Watchdog Reset
32 SOICW-EP
33975
VPWR
MCU
WAKE SI SCLK CS SO INT AMUX MOSI SCLK CS MISO INT AN0
SG0 SG1
SG12
SG13
GND
Figure 1. 33975 Simplified Application Diagram
* This document contains certain information on a new product. Specifications and information herein are subject to change without notice.
(c) Freescale Semiconductor, Inc., 2005. All rights reserved.
DEVICE VARIATIONS
DEVICE VARIATIONS
Table 1. Device Variations
Freescale Part No. MC33975 PC33975A Switch Input Voltage Range -14 to 38 VDC -14 to 40 VDC Other Significant Device Variations None None Reference Location 5 5
33975
2
Analog Integrated Circuit Device Data Freescale Semiconductor
INTERNAL BLOCK DIAGRAM
INTERNAL BLOCK DIAGRAM
5.0 V VPWR VPWR 32.0 mA SP0 SP1 SP2 SP3 SP4 SP5 SP6 SP7 16.0 mA To + 2.0 4.0 V - SPI mA Ref Comparator 5.0 V VPWR 5.0 V To + 4.0 V - SPI Ref Comparator WAKE
WAKE Control
SP0
VPWR
VPWR, VDD, 5.0 V POR Bandgap Sleep PWR
4.0 mA
VPWR VDD GND
16.0 mA
To + 2.0 4.0 V - SPI mA Ref Comparator
VPWR VPWR 32.0 mA 4.0 mA
SP7 5.0 V Oscillator and Clock Control VPWR
5.0 V Temperature Monitor and Control 5.0 V 125 k
VPWR VPWR 32.0 mA SG0 SG1 SG2 SG3 SG4 SG5 SG6 SG7 SG8 SG9 SG10 SG11 SG12 SG13 VPWR VPWR 32.0 mA 4.0 mA 4.0 mA
SG0
SPI Interface and Control
VDD 125 k INT
INT Control
VDD MUX Interface 40 A CS
VDD
SCLK SI SO
SG13
To + 4.0 V - SPI Ref Comparator
+
VDD
Analog Mux Output
-
AMUX
Figure 2. 33975 Simplified Internal Block Diagram
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
3
TERMINAL CONNECTIONS
TERMINAL CONNECTIONS
GND SI SCLK CS SP0 SP1 SP2 SP3 SG0 SG1 SG2 SG3 SG4 SG5 SG6 VPWR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
SO VDD AMUX INT SP7 SP6 SP5 SP4 SG7 SG8 SG9 SG10 SG11 SG12 SG13 WAKE
Figure 3. 33975 Terminal Connections Table 2. Terminal Definitions A functional description of each terminal can be found in the Functional Terminal Description section on page 11.
Terminal 1 2 3 4 5-8 25-28 9-15, 18-24 16 17 29 30 31 32 Terminal Name GND SI SCLK CS SPn SGn VPWR WAKE INT AMUX VDD SO Formal Name Ground SPI Slave In Serial Clock Chip Select Programmable Switches 0-3 Programmable Switches 4-7 Switch-to-Ground Inputs 0-6 Switch-to-Ground Inputs 13-7 Battery Input Wake-Up Interrupt Analog Multiplex Output Voltage Drain Supply SPI Slave Out Description Ground for logic, analog, and switch-to-battery inputs. SPI control data input terminal from MCU to 33975. SPI control clock input terminal. SPI control chip select input terminal from MCU to 33975. Logic [0] allows data to be transferred in. Programmable switch-to-battery or switch-to-ground input terminals. Switch-to-ground input terminals. Battery supply input terminal. This terminal requires external reverse battery protection. Open drain wake-up output is designed to control a power supply enable terminal. Open-drain output to MCU is used to indicate input switch change of state. Analog multiplex output. 3.3/5.0 V supply sets SPI communication level for SO driver. Provides digital data from 33975 to MCU.
33975
4
Analog Integrated Circuit Device Data Freescale Semiconductor
MAXIMUM RATINGS
MAXIMUM RATINGS
Table 3. Maximum Ratings All voltages are with respect to ground unless otherwise noted. Exceeding these limits may cause malfunction or permanent damage to the device.
Rating ELECTRICAL RATINGS VDD Supply Voltage
CS, SI, SO, SCLK, INT, AMUX WAKE
Symbol
Value
Unit
- - - - -
-0.3 to 7.0 -0.3 to 7.0 -0.3 to 40 -0.3 to 50
VDC VDC VDC VDC VDC
VPWR Supply Voltage Switch Input Voltage Range MC33975 PC339775A Frequency of SPI Operation (VDD = 5.0 V) ESD Voltage (1) Human Body Model (2) Applies to all non-input terminals Machine Model Charge Device Model Corner Terminals Interior Terminals THERMAL RATINGS Operating Temperature Ambient Junction Case Storage Temperature Power Dissipation (3) Thermal Resistance Junction to Ambient Between the Die and the Exposed Die Pad (4) Peak Package Reflow Temperature During Solder Mounting (5)
-14 to 38 -14 to 40 - 6.0 MHz V VESD 4000 2500 200 750 500
C
TA TJ TC TSTG PD RJA RJC TSOLDER -40 to 125 -40 to 150 -40 to 125 -55 to 150 1.7
C
W
C/W
71 1.2 245
C
Notes 1. ESD testing is performed in accordance with the Human Body Model (CZAP = 100 pF, RZAP = 1500 ), the Machine Model (CZAP = 200 pF, RZAP = 0 ), and the Charge Device Model. 2. 3. 4. 5. All Programmable Switches (SP) and Switch-to-Ground (SG) input terminals when tested individually. Maximum power dissipation at TJ =150C junction temperature with no heatsink used. Thermal resistance between the die and the exposed die pad. Terminal soldering temperature limit is for 10 seconds maximum duration. Not designed for immersion soldering. Exceeding these limits may cause malfunction or permanent damage to the device.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
5
STATIC ELECTRICAL CHARACTERISTICS
STATIC ELECTRICAL CHARACTERISTICS
Table 4. Static Electrical Characteristics Characteristics noted under conditions of 3.0 V VDD 5.5 V, 8.0 V VPWR 28V, -40C TC 125C unless otherwise noted. Where applicable, typical values reflect the parameter's approximate average value with VPWR = 13 V, TA = 25C.
Characteristic POWER INPUT Supply Voltage Supply Voltage Range Quasi-Functional Fully Operational Supply Voltage Range Quasi-Functional (7) Supply Voltage VPWR Supply Voltage Power On Reset Supply Current All Switches Open, Normal Mode, Tri-State Disabled Sleep State Supply Current Scan Timer = 64 ms, Switches Open Logic Supply Voltage Logic Supply Current All Switches Open, Normal Mode Sleep State Logic Supply Current Scan Timer = 64 ms, Switches Open SWITCH INPUT Pulse Wetting Current Switch-to-Battery (Current Sink) 5.5 V VPWR 28 V Pulse Wetting Current Switch-to-Ground (Current Source) 5.5 V VPWR 8.0 V 8.0 V VPWR 28 V Sustain Current Switch-to-Battery Input (Current Sink) 5.5 V VPWR 28 V Sustain Current Switch-to-Ground Input (Current Source) 5.5 V VPWR 8.0 V 8.0 V VPWR 28 V Sustain Current Matching Between Channels on Switch-to-Ground Inputs ISUS(MAX) - ISUS(MIN) ISUS(MIN) X 100 IMatch - 2.0 5.0 Isustain 0.5 3.6 1.0 4.0 - 4.4 % Isustain 1.8 2.1 2.4 mA IPulse 7.0 24 9.0 32 - 36 mA IPulse 12 15 18 mA mA IDD(ss) - 10 20 VDD IDD - 0.25 0.5 A IPWR(ss) 40 3.0 70 - 100 5.5 V mA IPWR(on) - 4.0 8.0 A
(6)
Symbol
Min
Typ
Max
Unit
V VPWR(qf) VPWR(fo) VPWR(qf) VPWR(POR) 4.2 4.6 5.0 mA 5.5 8.0 28 - - - 8.0 28 38/40 V
Notes 6. Device operational. Wetting and sustain currents are reduced. Operating the analog multiplexer below 8.0 V is not recommended. 7. Thermal considerations must be taken when operating the device above 28 V.
33975
6
Analog Integrated Circuit Device Data Freescale Semiconductor
STATIC ELECTRICAL CHARACTERISTICS
Table 4. Static Electrical Characteristics (continued) Characteristics noted under conditions of 3.0 V VDD 5.5 V, 8.0 V VPWR 28V, -40C TC 125C unless otherwise noted. Where applicable, typical values reflect the parameter's approximate average value with VPWR = 13 V, TA = 25C.
Characteristic SWITCH INPUT (CONTINUED) Input Offset Current when Selected as Analog Input Offset Voltage when Selected as Analog V(SP&SGinputs) to AMUX Output Analog Operational Amplifier Output Voltage Sink 250 A Analog Operational Amplifier Output Voltage Source 250 A Switch Detection Threshold Temperature Monitor (8), (9) Temperature Monitor Hysteresis (9) Vth TLIM TLIM(hys) VOH VDD - 0.1 3.70 155 5.0 - 4.0 - 10 - 4.3 185 15 V VOL - 10 30 V Ioffset Voffset -10 2.5 10 mV -2.0 1.4 2.0 A mV Symbol Min Typ Max Unit
C C
Notes 8. Thermal shutdown of 16 mA and 32 mA pull-up and pull-down current sources only. 4.0 mA and 2.0 mA current source/sink and all other functions remain active. 9. This parameter is guaranteed by design; however it is not production tested.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
7
STATIC ELECTRICAL CHARACTERISTICS
Table 4. Static Electrical Characteristics (continued) Characteristics noted under conditions of 3.0 V VDD 5.5 V, 8.0 V VPWR 28V, -40C TC 125C unless otherwise noted. Where applicable, typical values reflect the parameter's approximate average value with VPWR = 13 V, TA = 25C.
Characteristic DIGITAL INTERFACE Input Logic High-Voltage Thresholds (10) Input Logic Low-Voltage Thresholds (10) SCLK, SI, Tri-State SO Input Current 0.0 V to VDD
CS Input Current CS = VDD CS Pull-Up Current CS = 0.0 V
Symbol
Min
Typ
Max
Unit
VIH VIL ISCLK, ISI, ISO(Tri) ICS
0.7 x VDD GND - 0.3
- -
VDD + 0.3 0.2 x VDD
V V A
-10
-
10 A
-10 ICS 30 VSO(high) VDD - 0.8 VSO(low) - CIN - V INT(high) VDD - 0.5 V INT(low) - I WAKE (pu) V WAKE(high) 4.0 V WAKE(low) - V WAKE(max) - 20 - 15
-
10 A
-
100 V
SO High-State Output Voltage I SO(high) = -200 A SO Low-State Output Voltage I SO(high) = 1.6 mA Input Capacitance on SCLK, SI, Tri-State SO (11)
INT Internal Pull-Up Current INT Voltage INT = Open Circuit INT Voltage
-
VDD V
- - 40
0.4 20 100 pF A V
-
VDD V
I INT = 1.0 mA
WAKE Internal Pull-Up Current WAKE Voltage WAKE = Open Circuit WAKE Voltage
0.2 40
0.4 100 A V
4.3
5.3 V
I WAKE = 1.0 mA
WAKE Voltage (11)
0.2
0.4 V
Maximum Voltage Applied to WAKE Through External Pull-Up Notes 10. Upper and lower logic threshold voltage levels apply to SI, CS, and SCLK. 11. This parameter is guaranteed by design however, is not production tested.
-
40
33975
8
Analog Integrated Circuit Device Data Freescale Semiconductor
DYNAMIC ELECTRICAL CHARACTERISTICS
DYNAMIC ELECTRICAL CHARACTERISTICS
Table 5. Dynamic Electrical Characteristics Characteristics noted under conditions of 3.0 V VDD 5.5 V, 8.0 V VPWR 28 V, -40C TC 125C unless otherwise noted. Where applicable, typical values reflect the parameter's approximate average value with VPWR = 13 V, TA = 25C.
Characteristic SWITCH INPUT Pulse Wetting Current Time Interrupt Delay Time Normal Mode Sleep Mode Switch Scan Time Calibrated Scan Timer Accuracy Sleep Mode Calibrated Interrupt Timer Accuracy Sleep Mode DIGITAL INTERFACE TIMING (12) Required Low State Duration on VPWR for Reset (13) VPWR 0.2 V Falling Edge of CS to Rising Edge of SCLK Required Setup Time Falling Edge of SCLK to Rising Edge of CS Required Setup Time SI to Falling Edge of SCLK Required Setup Time Falling Edge of SCLK to SI Required Hold Time SI, CS, SCLK Signal Rise Time (14) SI, CS, SCLK Signal Fall Time (14) Time from Falling Edge of CS to SO Low Impedance (15) Time from Rising Edge of CS to SO High Impedance (16) Time from Rising Edge of SCLK to SO Data Valid (17) Notes 12. 13. 14. 15. 16. 17. t r(SI) t f(SI) t SO(en) t SO(dis) t valid t SI(hold) 20 - - - - - - 5.0 5.0 - - 25 - - - 55 55 55 ns ns ns ns ns t SI(su) 16 - - ns t lag 50 - - ns t lead 100 - - ns t RESET - - 10 ns s t int timer - - 10 t scan t scan timer - - 10 % t pulse(on) t int-dly - 100 5.0 200 16 300 s % 15 16 22 ms s Symbol Min Typ Max Unit
These parameters are guaranteed by design. Production test equipment uses 4.16 MHz, 5.0 V SPI interface. This parameter is guaranteed by design but not production tested. Rise and Fall time of incoming SI, CS, and SCLK signals suggested for design consideration to prevent the occurrence of double pulsing. Time required for valid output status data to be available on SO terminal. Time required for output states data to be terminated at SO terminal. Time required to obtain valid data out from SO following the rise of SCLK with 200 pF load.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
9
TIMING DIAGRAMS
TIMING DIAGRAMS
CS
0.2 VDD
tlead
tlag
SCLK
0.7 VDD 0.2 VDD
tSI(su)
tSI(hold)
SI
0.7 VDD 0.2 VDD
MSB in
tSO(en)
tvalid
0.7 VDD 0.2 VDD
tSO(dis)
SO
MSB out
LSB out
Figure 4. SPI Timing Characteristics
VPWR VDD WAKE INT CS Wake-Up From Closed Switch Power-Up Normal Mode Tri-State Command
(Disable Tri-State)
Wake-Up From Interrupt Timer Expire
SGn Sleep Command Sleep Mode Normal Mode Sleep Command Sleep Mode
Normal Mode
Sleep Command
Figure 5. Sleep Mode to Normal Mode Operation
Switch state change with
INT
Switch state change with
CS low generates INT
CS low generates INT
CS
Latch switch status on falling edge of CS
SGn
Rising edge of CS does not clear INT because state change occurred while CS was low Switch closed "1"
Switch open "0"
SGn Bit in SPI Word
1 Switch Status Command
0 Switch Status Command
0 Switch Status Command
1 Switch Status Command
1 Switch Status Command
0 Switch Status Command
Figure 6. Normal Mode Interrupt Operation
33975
10
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DESCRIPTIONS INTRODUCTION
FUNCTIONAL DESCRIPTIONS
INTRODUCTION
The 33975 device is an integrated circuit designed to provide systems with ultra-low quiescent sleep/wake-up modes and a robust interface between switch contacts and a microprocessor. The 33975 replaces many of the discrete components required when interfacing to microprocessorbased systems while providing switch ground offset protection, contact wetting current, and system wake-up. The 33975 features 8-programmable switch-to-ground or switch-to-battery inputs and 14 switch-to-ground inputs. All switch inputs may be read as analog inputs through the analog multiplexer (AMUX). Other features include a programmable wake-up timer, programmable interrupt timer, programmable wake-up/interrupt bits, and programmable wetting current settings. This device is designed primarily for automotive applications but may be used in a variety of other applications such as computer, telecommunications, and industrial controls.
FUNCTIONAL TERMINAL DESCRIPTION CHIP SELECT (CS)
The system MCU selects the 33975 to receive communication using the chip select (CS) terminal. With the CS in a logic low state, command words may be sent to the 33975 via the serial input (SI) terminal, and switch status information can be received by the MCU via the serial output (SO) terminal. The falling edge of CS enables the SO output, latches the state of the INT terminal, and the state of the external switch inputs. Rising edge of the CS initiates the following operation: 1. Disables the SO driver (high impedance) 1. INT terminal is reset to logic [1], except when additional switch changes occur during CS low (see Figure 6, page 10). 1. Activates the received command word, allowing the 33975 to act upon new data from switch inputs. To avoid any spurious data, it is essential the high-to-low and low-to-high transitions of the CS signal occur only when SCLK is in a logic low state. Internal to the 33975 device is an active pull-up to VDD on CS. In Sleep mode the negative edge of CS (VDD applied) will wake up the 33975 device. Data received from the device during CS wake-up may not be accurate. signal on the SCLK and SI terminals will be ignored and the SO terminal is tri-state.
SERIAL INPUT (SI)
The SI terminal is used for serial instruction data input. SI information is latched into the input register on the falling edge of SCLK. A logic high state present on SI will program a one in the command word on the rising edge of the CS signal. To program a complete word, 24 bits of information must be entered into the device.
SERIAL OUTPUT (SO)
The SO terminal is the output from the shift register. The SO terminal remains tri-stated until the CS terminal transitions to a logic low state. All open switches are reported as zero, all closed switches are reported as one. The negative transition of CS enables the SO driver. The first positive transition of SCLK will make the status data bit 24 available on the SO terminal. Each successive positive clock will make the next status data bit available for the MCU to read on the falling edge of SCLK. The SI/SO shifting of the data follows a first-in-first-out protocol, with both input and output words transferring the most significant bit (MSB) first.
SERIAL CLOCK (SCLK)
The system clock (SCLK) terminal clocks the internal shift register of the 33975. The SI data is latched into the input shift register on the falling edge of SCLK signal. The SO terminal shifts the switch status bits out on the rising edge of SCLK. The SO data is available for the MCU to read on the falling edge of SCLK. False clocking of the shift register must be avoided to ensure validity of data. It is essential the SCLK terminal be in a logic low state whenever CS makes any transition. For this reason, it is recommended, though not necessary, that the SCLK terminal is commanded to a low logic state as long as the device is not accessed and CS is in a logic high state. When the CS is in a logic high state, any
INTERRUPT OUTPUT (INT)
The INT terminal is an interrupt output from the 33975 device. The INT terminal is an open-drain output with an internal pull-up to VDD. In Normal mode, a switch state change will trigger the INT terminal (when enabled). The INT terminal is latched on the falling edge of CS. and cleared on the rising edge of CS. The INT terminal will not clear with rising edge of CS if a switch contact change has occurred while CS was low. In a multiple 33975 device system with WAKE high and VDD on (Sleep mode), the falling edge of INT will place all 33975s in Normal mode.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
11
FUNCTIONAL DESCRIPTIONS FUNCTIONAL TERMINAL DESCRIPTION
WAKE INPUT (WAKE)
The WAKE terminal is an open-drain output and a wake-up input. The terminal is designed to control a power supply Enable terminal. In the Normal mode, the WAKE terminal is low. In the Sleep mode, the WAKE terminal is high. The WAKE terminal has a pull-up to the internal +5.0 V supply. In Sleep mode with the WAKE terminal high, falling edge of WAKE will place the 33975 in Normal mode. In Sleep mode with VDD applied, the INT terminal must be high for negative edge of WAKE to wake up the device. If VDD is not applied to the device in Sleep mode, INT does not affect WAKE operation.
GROUND (GND)
The GND terminal provides ground for the IC as well as ground for inputs programmed as switch-to-battery inputs.
PROGRAMMABLE SWITCHES (SP0-SP7)
The 33975 device has 8 switch inputs capable of being programmed to read switch-to-ground or switch-to-battery contacts. The input is compared with a 4.0 V reference. When programmed to be switch-to-battery, voltages greater than 4.0 V are considered closed. Voltages less than 4.0 V are considered open. The opposite holds true when inputs are programmed as switch-to-ground. Programming features are defined in Table 6 through Table 11 in the Functional Device Operation section of this datasheet beginning on page 14. Voltages greater than the VPWR supply voltage will source current through the SP inputs to the VPWR terminal. Transient battery voltages greater than 38/40 V must be clamped by an external device.
LOAD SUPPLY VOLTAGE (VPWR)
The VPWR terminal is battery input and Power-ON Reset to the 33975 IC. The VPWR terminal requires external reverse battery and transient protection. Maximum input voltage on VPWR is 50 V. All wetting, sustain, and internal logic current is provided from the VPWR terminal.
SWITCH-TO-GROUND (SG0-SG13)
The SGn terminals are switch-to-ground inputs only. The input is compared with a 4.0 V reference. Voltages greater than 4.0 V are considered open. Voltages less than 4.0 V are considered closed. Programming features are defined in Table 6 through Table 11 in the Functional Device Operation section of this datasheet beginning on page 14. Voltages greater than the VPWR supply voltage will source current through the SG inputs to the VPWR terminal. Transient battery voltages greater than 38/40 V must be clamped by an external device.
LOGIC VOLTAGE (VDD)
The VDD input terminal is used to determine logic levels on the microprocessor interface (SPI) terminals. Current from VDD is used to drive SO output and the pull-up current for CS and INT terminals. VDD must be applied for wake-up from negative edge of CS or INT.
33975
12
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DESCRIPTIONS FUNCTIONAL TERMINAL DESCRIPTION
MCU INTERFACE DESCRIPTION
The 33975 device directly interfaces to a 3.3 V or 5.0 V microcontroller unit (MCU). SPI serial clock frequencies up to 6.0 MHz may be used for programming and reading switch input status (production tested at 4.16 MHz). Figure 7 illustrates the configuration between an MCU and one 33975. Serial peripheral interface (SPI) data is sent to the 33975 device through the SI input terminal. As data is being clocked into the SI terminal, status information is being clocked out of the device by the SO output terminal. The response to a SPI command will always return the switch status, reset flag, and thermal flag. Input switch states are latched into the SO register on the falling edge of the chip select (CS) terminal. Twenty-four bits are required to complete a transfer of information between the 33975 and the MCU. MC68HCXX Microcontroller
MOSI Shift Register MISO SCLK Parallel Ports INT SO SCLK CS INT SI
33975
33975
SI SO
MC68HCXX Microcontroller
MOSI Shift Register MISO SI SO
33975
SCLK CS
24-Bit Shift Register
INT
Figure 8. SPI Parallel Interface with Microprocessor
SCLK Receive Buffer CS Parallel Ports INT INT Shift Register To Logic
MC68HCXX Microcontroller
MOSI MISO SCLK Parallel Ports INT SI SO SCLK CS INT
33975
Figure 7. SPI Interface with Microprocessor Two or more 33975 devices may be used in a module system. Multiple ICs may be SPI-configured in parallel or serial. Figures 8 and 9 show the configurations. When using the serial configuration, 48-clock cycles are required to transfer data in/out of the ICs.
33975
SI SO SCLK CS INT
Figure 9. SPI Serial Interface with Microprocessor
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
13
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
FUNCTIONAL DEVICE OPERATION
POWER SUPPLY
The 33975 is designed to operate from 5.5 V to 38/40 V on the VPWR terminal. Characteristics are provided from 8.0 V to 28 V for the device. Switch contact currents and the internal logic supply are generated from the VPWR terminal. The VDD supply terminal is used to set the SPI communication voltage levels, current source for the SO driver, and pull-up current on INT and CS. VDD supply may be removed from the device to reduce quiescent current. If VDD is removed while the device is in Normal mode, the device will remain in Normal mode. If VDD is removed in Sleep mode, the device will remain in Sleep mode until wake-up input is received (WAKE high to low, switch input or interrupt timer expires). Removing VDD from the device disables SPI communication and will not allow the device to wake up from INT and CS terminals.
POWER-ON RESET (POR)
Applying VPWR to the device will cause a Power-ON Reset and place the device in Normal mode. Default settings from Power-ON Reset via VPWR or Reset Command are as follows: * Programmable Switch - Set to Switch-to-Battery * All Inputs Set as Wake-Up * Wetting Current On (16 mA pull down, 32 mA pull up) * Wetting Current Timer On (20 ms) * All Inputs Tri-State * Analog Select 00000 (No Input Channel Selected) Note The 33975 device provides indication that a reset has occurred by placing a logic [1] in bit 22 of the SO buffer. The reset bit is cleared on rising edge of CS.
OPERATIONAL MODES
The 33975 has two operating modes, Normal mode and Sleep mode. A discussion on Normal mode begins below. A discussion on Sleep Mode begins on page 20. * * * * Tri-State Register (Tri-State Command) Analog Select Register (Analog Command) Calibration of Timers (Calibration Command) Reset (Reset Command)
NORMAL MODE
Normal mode may be entered by the following events: * Application of VPWR to the IC * Change-of-Switch State (when enabled) * Falling Edge of WAKE * Falling Edge of INT (with VDD = 5.0 V and WAKE at Logic [1]) * Falling Edge of CS (with VDD = 5.0 V) * Interrupt Timer Expires Only in Normal mode with VDD applied can the registers of the 33975 be programmed through the SPI. The registers that may be programmed in Normal mode are listed below. Further explanation of each register is provided in subsequent paragraphs. * Programmable Switch Register (Settings Command) * Wake-Up/Interrupt Register (Wake-Up/Interrupt Command) * Wetting Current Register (Metallic Command) * Wetting Current Timer Register (Wetting Current Timer Enable Command) Table 6. Settings Command
Settings Command 23 0 22 0 21 0 20 0 19 0 18 0 17 0 16 1 15 X 14 X 13 X
Figure 6, page 10, is a graphical description of the device operation in Normal mode. Switch states are latched into the input register on the falling edge of CS. The INT to the MCU is cleared on the rising edge of CS. However, INT will not clear on rising edge of CS if a switch has closed during SPI communication (CS low). This prevents switch states from being missed by the MCU.
PROGRAMMABLE SWITCH REGISTER
Inputs SP0 to SP7 may be programmable for switch-tobattery or switch-to-ground. These inputs types are defined using the settings command (refer to Table 6). To set an SPn input for switch-to-battery, a logic [1] for the appropriate bit must be set. To set an SPn input for switch-to-ground, a logic [0] for the appropriate bit must be set. The MCU may change or update the Programmable Switch Register via software at any time in Normal mode. Regardless of the setting, when the SPn input switch is closed a logic [1] will be placed in the Serial Output Response Register (refer to Table 17, page 19).
Not used 12 X 11 X 10 X 9 X 8 X 7 sp7 6 sp6
Battery/Ground Select 5 sp5 4 sp4 3 sp3 2 sp2 1 sp1 0 sp0
33975
14
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
WAKE-UP/INTERRUPT REGISTER
The Wake-Up/Interrupt Register defines the inputs that are allowed to wake the 33975 from Sleep mode or set the INT terminal low in Normal mode. Programming the wake-up/ interrupt bit to logic [0] will disable the specific input from generating an interrupt and will disable the specific input from waking the IC in Sleep mode (refer to Table 7). Programming Table 7. Wake-Up /Interrupt Command
Wake-Up/Interrupt Command 23 0 0 22 0 0 21 0 0 20 0 0 19 0 0 18 0 0 17 1 1 16 0 1 15 X X 14 X X 13 X sg1 3 12 X sg1 2
the wake-up/interrupt bit to logic [1] will enable the specific input to generate an interrupt with switch change of state and will enable the specific input as wake-up. The MCU may change or update the Wake-Up/Interrupt Register via software at any time in Normal mode.
Command Bits 11 X sg1 1 10 X sg1 0 9 X sg9 8 X sg8 7 sp7 sg7 6 sp6 sg6 5 sp5 sg5 4 sp4 sg4 3 sp3 sg3 2 sp2 sg2 1 sp1 sg1 0 sp0 sg0
WETTING CURRENT REGISTER
The 33975 has two levels of switch-to-ground contact current, 32 mA and 4.0 mA, and two levels of switch-tobattery contact current, 16 mA and 2.0 mA (see Figure 10). The metallic command is used to set the switch contact current level (refer to Table 8). Programming the metallic bit to logic [0] will set the switch wetting current to 2.0 mA/4.0 mA. Programming the metallic bit to logic [1] will set the switch contact wetting current to 16 mA/32 mA. The MCU may change or update the Wetting Current Register via software at any time in Normal mode. Wetting current is designed to provide higher levels of current during switch closure. The higher level of current is designed to keep switch contacts from building up oxides that form on the switch contact surface.
Switch Contact Voltage
32 mA Switch Wetting Current
4.0 mA Switch Sustain Current 20 ms Wetting Current Timer
Figure 10. Contact Wetting and Sustain Current for Switch-to-Ground Input Table 8. Metallic Command
Metallic Command 23 0 0 22 0 0 21 0 0 20 0 0 19 0 0 18 1 1 17 0 0 16 0 1 15 X X 14 X X 13 X sg1 3 12 X sg1 2 11 X sg1 1 10 X sg1 0 9 X sg9 Command Bits 8 X sg8 7 sp7 sg7 6 sp6 sg6 5 sp5 sg5 4 sp4 sg4 3 sp3 sg3 2 sp2 sg2 1 sp1 sg1 0 sp0 sg0
WETTING CURRENT TIMER REGISTER
Each switch input has a designated 20 ms timer. The timer starts when the specific switch input crosses the comparator threshold (4.0 V). When the 20 ms timer expires, the contact current is reduced from 16 mA to 2.0 mA for switch-to-battery inputs and 32 mA to 4.0 mA for switch-to-ground inputs. The wetting current timer may be disabled for a specific input. When the timer is disabled, wetting current will continue to flow through the closed switch contact. With multiple wetting
current timers disabled, power dissipation for the IC must be considered. The MCU may change or update the Wetting Current Timer Register via software at any time in Normal mode. This allows the MCU to control the amount of time wetting current is applied to the switch contact. Programming the wetting current timer bit to logic [0] will disable the wetting current timer. Programming the wetting current timer bit to logic [1] will enable the wetting current timer (refer to Table 9).
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
15
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
Table 9. Wetting Current Timer Enable Command
Wetting Current Timer Commands 23 0 0 22 0 0 21 0 0 20 0 0 19 0 1 18 1 0 17 1 0 16 1 0 15 X X 14 X X 13 X sg1 3 12 X sg1 2 11 X sg1 1 10 X sg1 0 9 X sg9 Command Bits 8 X sg8 7 sp7 sg7 6 sp6 sg6 5 sp5 sg5 4 sp4 sg4 3 sp3 sg3 2 sp2 sg2 1 sp1 sg1 0 sp0 sg0
TRI-STATE REGISTER
The tri-state command is use to set the SPn or SGn input node as high impedance (refer to Table 10). By setting the Tri-State Register bit to logic [1], the input will be high impedance regardless of the metallic command setting. The Table 10. Tri-State Command
Tri-State Commands 23 0 0 22 0 0 21 0 0 20 0 0 19 1 1 18 0 0 17 0 1 16 1 0 15 X X 14 X X 13 X 12 X
comparator on each input remains active. This command allows the use of each input as a comparator with a 4.0 V threshold. The MCU may change or update the Tri-State Register via software at any time in Normal mode.
Command Bits 11 X 10 X 9 X 8 X 7 6 5 4 3 2 1 0
sp7 sp6 sp5 sp4 sp3 sp2 sp1 sp0
sg13 sg12 sg11 sg10 sg9 sg8 sg7 sg6 sg5 sg4 sg3 sg2 sg1 sg0
33975
16
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
ANALOG SELECT REGISTER
The analog voltage on switch inputs may be read by the MCU using the analog command (refer to Table 11). Internal Analog currents set by the analog command are pull-up to the IC is a 22-to-1 analog multiplexer. The voltage present currents for all SGn and SPn inputs (refer to Table 11). The on the selected input terminal is buffered and made available analog command does not allow pull-down currents on the on the AMUX output terminal. The AMUX output terminal is SPn inputs. Setting the current to 32 mA or 4.0 mA may be clamped to a maximum of VDD volts regardless of the higher useful for reading sensor inputs. Further information is voltages present on the input terminal. After an input has provided in the Typical Applications section of this datasheet been selected as the analog, the corresponding bit in the next beginning on page 22. The MCU may change or update the SO data stream will be logic [0]. When selecting a channel to Analog Select Register via software at any time in Normal be read as analog, the user must also set the desired current mode. (32 mA, 4.0 mA, or high impedance). Setting bit 6 and bit 5 to 0,0 selects the input as high impedance. Setting bit 6 and bit 5 to 0,1 selects 4.0 mA, and 1,0 selects 32 mA. Setting Table 11. Analog Command
Analog Command 23 0 22 0 21 0 20 0 19 0 18 1 17 1 16 0 15 X 14 X 13 X Not used 12 X 11 X 10 X 9 X 8 X 7 X Current Select 6 32 mA 5 4.0 mA Analog Channel Select 4 0 3 0 2 0 1 0 0 0
bit 6 and bit 5 to 1,1 in the Analog Select Register is not allowed and will place the input as an analog input with high impedance.
Table 12. Analog Channel
Bits 43210 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 10101 10110 Analog Channel Select No Input Selected SG0 SG1 SG2 SG3 SG4 SG5 SG6 SG7 SG8 SG9 SG10 SG11 SG12 SG13 SP0 SP1 SP2 SP3 SP4 SP5 SP6 SP7
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
17
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
CALIBRATION OF TIMERS
In cases where an accurate time base is required, the user may calibrate the internal timers using the calibration command (refer to Table 13). After the 33975 device receives the calibration command, the device expects 512 s logic [0] calibration pulse on the CS terminal. The pulse is used to calibrate the internal clock. No other SPI terminals should transition during this 512 s calibration pulse. Table 13. Calibration Command
Calibration Command 23 0 22 0 21 0 20 0 19 1 18 0 17 1 16 1 15 X 14 X 13 X 12 X
Because the oscillator frequency changes with temperature, calibration is required for an accurate time base. Calibrating the timers has no affect on the quiescent current measurement. The calibration command simply makes the time base more accurate. The calibration command may be used to update the device on a periodic basis. All reset conditions clear the calibration register and places the device in the uncalibrated state.
Command Bits 11 X 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1 X 0 X
RESET
The reset command resets all registers to Power-ON Reset (POR) state. Refer to Table 15, page 18, for POR Table 14. Reset Command
Reset Command 23 0 22 1 21 1 20 1 19 1 18 1 17 1 16 1 15 X 14 X 13 X 12 X
states or the paragraph entitled Power-ON Reset (POR) on page 14 of this datasheet.
Command Bits 11 X 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1 X 0 X
SPI COMMAND SUMMARY
Table 15 below provides a comprehensive list of SPI commands recognized by the 33975 and the reset state of each register. Table 16 and Table 17 contain the Serial Output (SO) data for input voltages greater or less than the Table 15. SPI Command Summary
MSB
23 Switch Status Command Settings Command Bat=1, Gnd=0 0 22 0
threshold level. Open switches are always indicated with a logic [0], closed switches are indicated with logic [1].
Command Bits
21 0 20 0 19 0 18 0 17 0 16 0 15 X 14 X 13 X
Setting Bits
12 X 11 X 10 X 9 X 8 X 7 X 6 X 5 X 4 X
LSBI
3 X 2 X 1 X 0 X
0
0
0
0
0
0
0
1
X
X
X
X
X
X
X
X
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
(Default state = 1)
Wake-Up/Interrupt Bit Wake-Up=1 Nonwake-Up=0 (Default state = 1) Metallic Command Metallic = 1 Non-metallic = 0 0 0 0 0 0 1 0 1 X X SG13 SG12 SG11 SG10 SG9 SG8 SG7 SG6 SG5 SG4 SG3 SG2 SG1 SG0 0 0 0 0 0 1 0 0 X X X X X X X X SP7 SP6 SP5 SP4 SP3 SP2 SP1 SP0 0 0 0 0 0 0 1 1 X X SG13 SG12 SG11 SG10 SG9 SG8 SG7 SG6 SG5 SG4 SG3 SG2 SG1 SG0 0 0 0 0 0 0 1 0 X X X X X X X X SP7 SP6 SP5 SP4 SP3 SP2 SP1 SP0
(Default state = 1)
33975
18
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
MSB
Analog Command 0 0
Command Bits
0 0 0 1 1 0 X X X
Setting Bits
X X X X X X 32mA 4.0m 0 A 0 0
LSBI
0 0 0 0
Wetting Current Timer Enable Command Timer ON = 1 Timer OFF = 0 (Default state = 1) Tri-State Command Input Tri-State=1
0 0
0 0
0 0
0 0
0 1
1 0
1 0
1 0
X X
X X
X
X
X
X
X
X SG8
SP7 SG7
SP6 SG6
SP5 SG5
SP4 SG4
SP3 SG3
SP2 SG2
SP1 SG1
SP0 SG0
SG13 SG12 SG11 SG10 SG9
0 0 0
0 0 0
0 0 0
0 0 0
1 1 1
0 0 0
0 1 1
1 0 1
X X X
X X X
X
X
X
X
X
X SG8 X
SP7 SG7 X
SP6 SG6 X
SP5 SG5 X
SP4 SG4 X
SP3 SG3 X
SP2 SG2 X
SP1 SG1 X
SP0 SG0 X
Input Active = 0
Calibration Command
SG13 SG12 SG11 SG10 SG9 X X X X X
(Default state uncalibrated)
Sleep Command 0 0 0 0 1 1 0 0 X X X X X X X X X X int int int scan scan scan
(See Sleep Mode on page 20)
Reset Command SO Response Will Always Send 0 1 1 SP7 1 SP6 1 SP5 1 SP4 1 SP3 1 SP2 X SP1 X X X X X X X SG8 X SG7 X SG6
timer timer timer timer timer timer
X SG5
X SG4
X SG3
X SG2
X SG1
X SG0
therm RST flg flg
SP0 SG13 SG12 SG11 SG10 SG9
Table 16. Serial Output (SO) Bit Data
Type of Input SP Input Programmed Switch to Ground Switch to Ground Switch to Battery Switch to Battery SG N/A N/A Voltage on Input terminal SPn < 4.0 V SPn > 4.0 V SPn < 4.0 V SPn > 4.0 V SGn < 4.0 V SGn > 4.0 V SO SPI Bit 1 0 0 1 1 0
Table 17. Serial Output (SO) Response Register
SO Response Will therm RST Always Send flg flg SP7 SP6 SP5 SP4 SP3 SP2 SP1 SP0 SG13 SG12 SG11 SG10 SG9 SG8 SG7 SG6 SG5 SG4 SG3 SG2 SG1 SG0
EXAMPLE OF NORMAL MODE OPERATION
The operation of the device in Normal Mode is defined by the states of the programmable internal control registers. A typical application may have the following settings: * Programmable Switch - Set to Switch-to-Ground * All Inputs Set as Wake-Up * Wetting Current On (32 mA)
* Wetting Current Timer On (20 ms) * All inputs Tri-State-Disabled (comparator is active) * Analog select 00000 (no input channel selected) With the device programmed as above, an interrupt will be generated with each switch contact change of state (open-toclose or close-to-open) and 32 mA of contact wetting current will be source for 20 ms. The INT terminal will remain low until switch status is acknowledged by the microprocessor. It is
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
19
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
critical to understand INT will not be cleared on the rising edge of CS if a switch closure occurs while CS is low. The maximum duration a switch state change can exist without acknowledgement depends on the software response time to the interrupt. Figure 6, page 10, shows the interaction between changing input states and the INT and CS terminals. If desired the user may disable interrupts (wake up/ interrupt command) from the 33975 device and read the switch states on a periodic basis. Switch activation and deactivation faster than the MCU read rate will not be acknowledged. The 33975 device will exit the Normal mode and enter the Sleep mode only with a valid sleep command.
* Interrupt Timer Expire * Falling Edge of WAKE * Falling Edge of INT (with VDD = 5.0 V and WAKE at Logic [1]) * Falling Edge of CS (with VDD = 5.0 V) * Power-ON Reset (POR) The VDD supply may be removed from the device during Sleep mode. However removing VDD from the device in Sleep mode will disable a wake-up from falling edge of INT and CS. Note In cases where CS is used to wake the device, the first SO data message is not valid. The sleep command contains settings for two programmable timers for Sleep mode, the interrupt timer and the scan timer, as shown in Table 18 The interrupt timer is used as a periodic wake-up timer. When the timer expires, an interrupt is generated and the device enters Normal mode. Note The interrupt timer in the 33975 device may be disabled by programming the interrupt bits to logic [1 1 1]. Table 19 shows the programmable settings of the Interrupt timer.
SLEEP MODE
Sleep mode is used to reduce system quiescent currents. Sleep mode may be entered only by sending the sleep command. All register settings programmed in Normal mode will be maintained in Sleep mode. The 33975 will exit Sleep mode and enter Normal mode when any of the following events occur: * Input Switch Change of State (when enabled) Table 18. Sleep Command
Sleep Command 23 0 22 0 21 0 20 0 19 1 18 1 17 0 16 0 15 X 14 X 13 X 12 X
Command Bits 11 X 10 X 9 X 8 X 7 X 6 X 5 int timer 4 int timer 3 int timer 2 scan timer 1 scan timer 0 scan timer
Table 19. Interrupt Timer
Bits 543 000 001 010 011 100 101 110 111 Interrupt Period 32 ms 64 ms 128 ms 256 ms 512 ms 1.024 s 2.048 s No interrupt wake-up
When switch state changes are detected, an interrupt (when enabled; refer to wake-up/interrupt command description on page 15) is generated and the device enters Normal mode. Without switch state changes, the 33975 will reset the scan timer, inputs become tri-state, and the Sleep mode continues until the scan timer expires again. Table 20 shows the programmable settings of the Scan timer. Table 20. Scan Timer
Bits 210 000 001 010 011 100 101 110 111 Scan Period No Scan 1.0 ms 2.0 ms 4.0 ms 8.0 ms 16 ms 32 ms 64 ms
The scan timer sets the polling period between input switch reads in Sleep mode. The period is set in the sleep command and may be set to 000 (no period) to 111 (64 ms). In Sleep mode when the scan timer expires, inputs will behave as programmed prior to sleep command. The 33975 will wake up for approximately 125 s and read the switch inputs. At the end of the 125 s, the input switch states are compared with the switch state prior to sleep command.
33975
Note The interrupt and scan timers are disabled in the Normal mode.
20
Analog Integrated Circuit Device Data Freescale Semiconductor
FUNCTIONAL DEVICE OPERATION OPERATIONAL MODES
Figure 5, page 10, is a graphical description of how the 33975 device exits Sleep mode and enters Normal mode. Notice that the device will exit Sleep mode when the interrupt timer expires or when a switch change of state occurs. The falling edge of INT triggers the MCU to wake from Sleep state. Figure 11 illustrates the current consumed during Sleep mode. During the 125 s, the device is fully active and switch states are read. The quiescent current is calculated by integrating the normal running current over scan period plus approximately 60 A.
TEMPERATURE MONITOR
With multiple switch inputs closed and the device programmed with the wetting current timers disabled, considerable power will be dissipated by the IC. For this reason temperature monitoring has been implemented. The temperature monitor is active in the Normal mode only. When the IC temperature is above the thermal limit, the temperature monitor will do all of the following: * Generate an interrupt. * Force all wetting current sources to revert to 2.0 mA/ 4.0 mA sustain currents * Maintain the 2.0 mA/4.0 mA sustain currents and all other functionality. * Set the thermal flag bit in the SPI output register. The thermal flag bit in the SPI word will be cleared on rising edge of CS provided the die temperature has cooled below the thermal limit. When die temperature has cooled below thermal limit, the device will resume previously programmed settings.
I=V/R or 0.270 V/100 =2.7 I=V/Ror 0.270V/100ohm = 2.7mA mA
Inputs active for 125 us 125 32 out out of sms of 32 ms
Inputs active for
I=V/R or I=V/R or 6mV/100ohm = 60 uA 6.0 mV/100 =60 A
Figure 11. Sleep Current Waveform
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
21
TYPICAL APPLICATIONS OPERATIONAL MODES
TYPICAL APPLICATIONS
The 33975's primary function is the detection of open or closed switch contacts. However, there are many features that allow the device to be used in a variety of applications. The following is a list of applications to consider for the IC: * Sensor Power Supply * Switch Monitor for Metallic or Elastomeric Switches * Analog Sensor Inputs (Ratiometric) * Power MOSFET/LED Driver and Monitor * Multiple 33975 Devices in a Module System The following paragraphs describe the applications in detail.
METALLIC/ELASTOMERIC SWITCH
Metallic switch contacts often develop higher contact resistance over time owing to contact corrosion. The corrosion is induced by humidity, salt, and other elements that exist in the environment. For this reason the 33975 provides two settings for contacts. When programmed for metallic switches, the device provides higher wetting current to keep switch contacts free of oxides. The higher current occurs for the first 20 ms of switch closure. Where longer duration of wetting current is desired, the user may send the wetting current timer command and disable the timer. Wetting current will be continuous to the closed switch. After the time period set by the MCU, the wetting current timer command may be sent again to enable the timer. The user must consider power dissipation on the device when disabling the timer. (Refer to the paragraph entitled Temperature Monitor, page 21.) To increase the amount of wetting current for a switch contact, the user has two options. Higher wetting current to a switch may be achieved by paralleling SGn or SPn inputs. This will increase wetting current by 32 mA for each input added to the switch-to- ground contact and 16 mA for switchto-battery contacts. The second option is to simply add an external resistor pull-up to the VPWR supply for switch-toground inputs or a resistor to ground for a switch-to-battery input. Adding an external resistor has no effect on the operation of the device. Elastomeric switch contacts are made of carbon and have a high contact resistance. Resistance of 1.0 k is common. In applications with elastomeric switches, the pull-up and pull-down currents must be reduced to prevent excessive power dissipation at the contact. Programming for a lower current settings is provided in the Functional Device Operation Section beginning on page 14 under Table 8, Metallic Command.
SENSOR POWER SUPPLY
Each input may be used to supply current to sensors external to a module. Many sensors such as Hall effect, pressure sensors, and temperature sensors require a supply voltage to power the sensor and provide an open collector or analog output. Figure 12 shows how the 33975 may be used to supply power and interface to these types of sensors. In an application where the input makes continuous transitions, consider using the wake-up/interrupt command to disable the interrupt for the particular input.
33975
SP0 SP1 VBAT SP7 WAKE SI SG0 SG1 VPWR VPWR 32 mA 32 mA SG12 VPWR VPWR Hall-Effect Sensor Reg
X
VBAT
VPWR
VDD
VDD
MCU
MOSI SCLK CS MISO INT
SCLK CS SO INT
4.0 mA
ANALOG SENSOR INPUTS (RATIOMETRIC)
The 33975 features a 22-to-1 analog multiplexer. Setting the binary code for a specific input in the analog command allows the microcontroller to perform analog to digital conversion on any of the 22 inputs. On rising edge of CS the multiplexer connects a requested input to the AMUX terminal. The AMUX terminal is clamped to max of VDD volts regardless of the higher voltages present on the input terminal. After an input has been selected as the analog, the corresponding bit in the next SO data stream will be logic [0]. The input terminal, when selected as analog, may be configured as analog with high impedance, analog with 4.0 mA pull-up, or analog with 32 mA pull-up. Figure 13, page 23, shows how the 33975 may be used to provide a ratiometric reading of variable resistive input.
32 mA SG13
4.0 mA AMUX
IOC[7:0]
Input Capture Timer Port
VPWR 0V SG13
VDD 0V AMUX
Figure 12. Sensor Power Supply
33975
22
Analog Integrated Circuit Device Data Freescale Semiconductor
TYPICAL APPLICATIONS OPERATIONAL MODES
VBAT SP0 SP1
33975
VPWR VDD VDD
Using the equation yields the following: ADC =
MCU
I1 x R1 x 225 I2 x R2 x 225
VBAT SP7 WAKE SI SG0 SG1 VPWR VPWR 32 mA SG12 VPWR VPWR 32 mA 4.0 mA 4.0 mA SCLK CS SO INT AMUX MOSI SCLK CS MISO INT AN0 Analog Ports
ADC =
4.0 mA x 1.0 k 4.0 mA x 1.21 k
ADC = 210 counts The ADC value of 213 counts is the value with 0% error (neglecting the resistor tolerance and AMUX input offset voltage). Now we can calculate the count value induced by the mismatch in current sources. From a sample device the maximum current source was measured at 3.979 mA and minimum current source was measured at 3.933 mA. This yields 1.16% error in A/D conversion due to the current source mismatch. The A/D measurement will be as follows: 3.933 mA x 1.0 k 3.979 mA x 1.21 k ADC = 208 counts
I1
4.0 mA R1 Analog Sensor or Analog Switch SG13
4.0 mA
I2
4.36 V to 5.32 V R2 VREF(H) VREF(L)
1.21 k 0.1%
ADC =
x 225
Figure 13. Analog Ratiometric Conversion To read a potentiometer sensor, the wiper should be grounded and brought back to the module ground, as illustrated in Figure 13. With the wiper changing the impedance of the sensor, the analog voltage on the input will represent the position of the sensor. Using the Analog feature to provide 4.0 mA of pull-up current to an analog sensor may induce error due to the accuracy of the current source. For this reason, a ratiometric conversion must be considered. Using two current sources (one for the sensor and one to set the reference voltage to the A/D converter) will yield a maximum error (owing to the 33975) of 4%. Higher accuracy may be achieved through module level calibration. In this example, we use the resistor values from Figure 13 and assume the current sources are 4% from each other. The user may use the module end-of-line tester to calculate the error in the A/D conversion. By placing a 1.0 k, 0.1% resistor in the end-of-line test equipment and assuming a perfect 4.0 mA current source from the 33975, a calculated A/D conversion may be obtained.
This A/D conversion is 1.16% low in value. The error correction factor of 1.0115 may be used to correct the value: ADC = 208 counts x 1.0116 ADC = 210 counts An error correction factor may then be stored in E2 memory and used in the A/D calculation for the specific input. Each input used as analog measurement will have a dedicated calibrated error correction factor.
POWER MOSFET/LED DRIVER AND MONITOR
Because of the flexible programming of the 33975 device, it may be used to drive small loads like LEDs or MOSFET gates. It was specifically designed to power up in the Normal mode with the inputs tri-state. This was done to ensure the LEDs or MOSFETs connected to the 33975 power up in the off-state. The Switch Programmable (SP0-SP7) inputs have a source-and-sink capability, providing effective MOSFET gate control. To complete the circuit, a pull-down resistor should be used to keep the gate from floating during the Sleep modes. Figure 14, page 24, shows an application where the SG0 input is used to monitor the drain-to-source voltage of the external MOSFET. The 750 resistor is used to set the drain-to-source trip voltage. With the 4.0 mA current source enabled, an interrupt will be generated when the drain-to-source voltage is approximately 1.0 V.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
23
TYPICAL APPLICATIONS OPERATIONAL MODES
VBAT
VPWR VPWR 32 mA 4.0 mA
SG0
The analog command may be used to monitor the drain voltage in the MOSFET ON state. By sourcing 4.0 mA of current to the 750 resistor, the analog voltage on the SGn terminal will be approximately: VSGn = ISGn x 750 + VDS
AMUX
The sequence of commands (from Normal mode with inputs tri-state) required to set up the device to drive a MOSFET are as follows: * wetting current timer enable command -Disable SPn wetting current timer (refer to Table 9, page 16). * metallic command -Set SPn to 16/32 mA or 2.0/4.0 mA gate drive current (refer to Table 8, page 15). * settings command -Set SPn as switch-to-battery (refer to Table 6, page 14). * tri-state command -Disable tri-state for SPn (refer to Table 10, page 16). After the tri-state command has been sent (tri-state disable), the MOSFET gate will be pulled to ground. From this point forward the MOSFET may be turned on and off by sending the settings command: * settings command -SPn as switch-to-ground (MOSFET ON). * settings command -SPn as switch-to-battery (MOSFET OFF). Monitoring of the MOSFET drain in the OFF state provides open load detection. This is done by using an input comparator. With the SGn input in tri-state, the load will pull up the input to battery. With the load open, the SGn terminal is pulled down to ground through an external resistor. The open load is indicated by a logic [1] in the SO data bit.
33975
24
LOAD 750 100 k SG0 SP0 SG13
4.0 V Ref
+ -
To SPI
Comparator VPWR VPWR 32 mA 4.0 mA
As the voltage on the drain of the MOSFET increases, so does the voltage on the SGn terminal. With the SGn terminal selected as analog, the MCU may perform the A/D conversion. Using this method for controlling unclamped inductive loads is not recommended. Inductive fly-back voltages greater than VPWR may damage the IC. The SP0-SP7 terminals of this device may also be used to send signals from one module to another. Operation is similar to the gate control of a MOSFET. For LED applications a resistor in series with the LED is recommended but not required. The switch-to-ground inputs are recommended for LED application. To drive the LED use the following commands: * wetting current timer enable command -Disable SGn wetting current timer. * metallic command -Set SGn to 32 mA. From this point forward the LED may be turned on and off using the tri-state command: * tri-state command -Disable tri-state for SGn (LED ON). * tri-state command -Enable tri-state for SGn (LED OFF). These parameters are easily programmed via SPI commands in Normal mode. Multiple 33975 Devices in a Module System Connecting power to the 33975 and the MCU for Sleep mode operation may be done in several ways. Table 21 shows several system configurations for power between the MCU and the 33975 and their specific requirements for functionality. Table 21. Sleep Mode Power Supply
MCU VDD 5.0 V 5.0 V 0V 33975 VDD 5.0 V 0V 5.0 V Comments All wake-up conditions apply. (Refer to Sleep Mode, page 20.) SPI wake-up is not possible. Sleep mode not possible. Current from CS pull up will flow through MCU to VDD that has been switched off. Negative edge of CS will put 33975 in Normal mode. SPI wake-up is not possible.
SG0
16 mA
To SPI 4.0 V + Ref Comparator 2.0 mA
VPWR VPWR 32 mA 4.0 mA
SG13
4.0 V Ref
+ -
To SPI
Comparator
Figure 14. MOSFET or LED Driver Output
0V
0V
Analog Integrated Circuit Device Data Freescale Semiconductor
TYPICAL APPLICATIONS OPERATIONAL MODES
Multiple 33975 devices may be used in a module system. SPI control may be done in parallel or serial. However when parallel mode is used, each device is addressed independently (refer to MCU Interface Description, page 13). Therefore when sending the sleep command, one device will enter sleep before the other. For multiple devices in a system, it is recommended that the devices are controlled in serial (S0 from first device is connected to SI of second device). With two devices, 48 clock pulses are required to shift data in. When the WAKE feature is used to enable the power supply, both WAKE terminals should be connected to the enable terminal on the power supply. The INT terminals may be connected to one interrupt terminal on the MCU or may have their own dedicated interrupt to the MCU. The transition from Normal to Sleep mode is done by sending the sleep command. With the devices connected in serial and the sleep command sent, both will enter Sleep mode on the rising edge of CS. When Sleep mode is entered, the WAKE terminal will be logic [1]. If either device wakes up, the WAKE terminal will transition low, waking the other device. A condition exists where the MCU is sending the sleep command (CS logic [0]) and a switch input changes state. With this event the device that detects this input will not transition to Sleep mode, while the second device will enter Sleep mode. In this case two switch status commands must be sent to receive accurate switch status data. The first switch status command will wake the device in Sleep mode. Switch status data may not be valid from the first switch status command because of the time required for the input voltage to rise above the 4.0 V input comparator threshold. This time is dependant on the impedance of SGn or SPn node. The second switch status command will provide accurate switch status information. It is recommended that software wait 10 ms to 20 ms between the two switch status commands, allowing time for switch input voltages to stabilize. With all switch states acknowledged by the MCU, the sleep sequence may be initiated. All parameters for Sleep
mode should be updated prior to sending the sleep command. The 33975 IC has an internal 5.0 V supply from the VPWR terminal. A POR circuit monitors the internal 5.0 V supply. In the event of transients on the VPWR terminal, an internal reset may occur. Upon reset the 33975 will enter Normal mode with the internal registers as defined in Table 15, page 18. Therefore it is recommended that the MCU periodically update all registers internal to the IC.
USING THE WAKE FEATURE
The 33975 provides a WAKE output and wake-up input designed to control an enable terminal on system power supply. While in the Normal mode, the WAKE output is low, enabling the power supply. In the Sleep mode, the WAKE terminal is high, disabling the power supply. The WAKE terminal has a passive pull-up to the internal 5.0 V supply but may be pulled up through a resistor to VPWR supply (see Figure 16, page 26). When the WAKE output is not used the terminal should be pulled up to the VDD supply through a resistor as shown in Figure 15, page 26). During the Sleep mode, a switch closure will set the WAKE terminal low, causing the 33975 to enter the Normal mode. The power supply will then be activated, supplying power to the VDD terminal and the microprocessor and the 33975. The microprocessor can determine the source of the wake-up by reading the interrupt flag.
COST AND FLEXIBILITY
Systems requiring a significant number of switch interfaces have many discrete components. Discrete components on standard PWB consume board space and must be checked for solder joint integrity. An integrated approach reduces solder joints, consumes less board space, and offers wider operating voltage, analog interface capability, and greater interfacing flexibility.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
25
TYPICAL APPLICATIONS OPERATIONAL MODES
VPWR VBAT
VBAT SP0 SP1 VBAT SP7 WAKE CS SG0 SG1 INT SI SO SCLK SG12 AMUX
VDD Power Supply VDD
33975
VPWR
VPWR
VDD
VDD
MC68HCXX Microprocessor
CS INT MOSI MISO SCLK AN0
SG13
Figure 15. Power Supply Active in Sleep Mode
VPWR VBAT
VBAT SP0 SP1 VBAT SP7 CS SG0 SG1 INT SI SO SCLK SG12 AMUX WAKE
VDD Power Supply VDD
33975
VPWR
VPWR
Enable
VDD MC68HCXX Microprocessor
CS INT MOSI MISO SCLK AN0
VDD
SG13
Figure 16. Power Supply Shutdown in Sleep Mode
33975
26
Analog Integrated Circuit Device Data Freescale Semiconductor
PACKAGE DIMENSIONS
PACKAGE DIMENSIONS
The silicon device is packaged in the 32 terminal SOIC with an exposed pad. The exposed pad is thermally conductive and electrically isolated to the die. It is recommended that the exposed pad be electrically connected to ground. Important: For the most current revision of the package, visit www.freescale.com and perform a "keyword" search on the "98A" number listed below.
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
27
PACKAGE DIMENSIONS (CONTINUED)
PACKAGE DIMENSIONS (CONTINUED)
33975
28
Analog Integrated Circuit Device Data Freescale Semiconductor
PACKAGE DIMENSIONS (CONTINUED)
PACKAGE DIMENSIONS (CONTINUED)
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
29
NOTES
33975
30
Analog Integrated Circuit Device Data Freescale Semiconductor
NOTES
33975
Analog Integrated Circuit Device Data Freescale Semiconductor
31
How to Reach Us:
Home Page: www.freescale.com E-mail: support@freescale.com USA/Europe or Locations Not Listed: Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) support@freescale.com Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064 Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po, N.T., Hong Kong +800 2666 8080 support.asia@freescale.com For Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-441-2447 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals", must be validated for each customer application by customer's technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should a Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, the Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. FreescaleTM and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. (c) Freescale Semiconductor, Inc., 2005. All rights reserved.
MC33975 Rev 4.0 08/2005


▲Up To Search▲   

 
Price & Availability of MC33975

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X